package io.renren.modules.work.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.work.dao.LaboratoryDao;
import io.renren.modules.work.entity.LaboratoryEntity;
import io.renren.modules.work.service.LaboratoryService;


@Service("laboratoryService")
public class LaboratoryServiceImpl extends ServiceImpl<LaboratoryDao, LaboratoryEntity> implements LaboratoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LaboratoryEntity> page = this.page(
                new Query<LaboratoryEntity>().getPage(params),
                new QueryWrapper<LaboratoryEntity>()
        );

        return new PageUtils(page);
    }

}
